package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;

public interface AlipayService {

    //  生成支付的二维码.
    String createaliPay(Long orderId) throws AlipayApiException;

    /**
     * 退款接口.
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId);

    /**
     * 关闭支付宝交易记录.
     * @param orderId
     * @return
     */
    Boolean closePay(Long orderId);

    /**
     * 查询交易记录.
     * @param orderId
     * @return
     */
    Boolean checkPayment(Long orderId);
}
